package com.hy.medicine.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.format.annotation.NumberFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
@ExcelIgnoreUnannotated  // 只导出有@ExcelProperty注解的字段
public class MedicineExportVO {
//    @ExcelProperty(value = "药品ID", index = 0)
//    private Long medicineId;

    @ExcelProperty(value = "药品名称")
    private String medicineName;

    @ExcelProperty(value = "批准文号")
    private String approvalNumber;

    @ExcelProperty(value = "规格")
    private String specification;

    @ExcelProperty(value = "剂型")
    private String dosageForm;

    @ExcelProperty(value = "生产厂家")
    private String manufacturer;

    @ExcelProperty(value = "保质期(月)")
    private Integer shelfLife;

    @ExcelProperty(value = "储存条件")
    private String storageCondition;

    @ExcelProperty(value = "单价(元)")
    @NumberFormat(pattern = "#.##")
    private BigDecimal price;

    @ExcelProperty(value = "库存数量")
    private Integer salesVolume;

    @ExcelProperty(value = "通用分类")
    private String commonCategoryId;

    @ExcelProperty(value = "处方类型")
    private String prescriptionCategoryId;

}
